//
//  Created by Rene Dohan on 11/14/11.
//

#import <Foundation/Foundation.h>

@protocol PapRequestListener;
@class UrlBuilder;


@interface PapRequest : NSObject {
@private
    NSMutableData *receivedData;
@protected
    UrlBuilder *builder;
}

- (void)send;

- (void)addArgument:(NSString *)argument :(NSString *)value;

@property(retain) NSObject <PapRequestListener> *listener;
@property(retain) NSString *action;
@property(retain) NSDictionary *data;
@property(readonly) BOOL success;

- (NSString *)createTimestamp;

- (NSString *)getUrl;

- (void)onResultsReady:(NSDictionary *)results;

@end